 package cn.electronic.sale.mapper;

import cn.electronic.sale.pojo.Goods;
import cn.electronic.sale.pojo.GoodsCustom;
import cn.electronic.sale.pojo.GoodsExample;
import cn.electronic.sale.pojo.GoodsQueryVo;

import java.util.List;
import org.apache.ibatis.annotations.Param;

import com.sun.xml.internal.ws.api.model.ExceptionType;

public interface GoodsMapper {
	List<Goods> selectGoodsByCondition(GoodsQueryVo goodsQueryVo) throws Exception;
	
	int countByExample(GoodsExample example);

    int deleteByExample(GoodsExample example);

    void deleteByPrimaryKey(Integer goodsId);

    int insert(Goods record);

    void insertSelective(Goods goods) throws Exception;

    List<Goods> selectByExample(GoodsExample example);

    List<GoodsCustom> selectAllGoodsInfo() throws Exception;
    
    List<GoodsCustom> selectAllGoodsInfoByCustomerId(Integer customerId) throws Exception;
    
    int selectGoodInfoByPrimaryKey(int goodsId) throws Exception;

    GoodsCustom selectAllGoodsInfoByPrimaryKey(Integer goodsId)throws Exception;

    int updateByExampleSelective(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByExample(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByPrimaryKeySelective(Goods goods);

    int updateByPrimaryKey(Goods record);
}